// let base = location.hostname.substring(6);
// base = (base === 'ost') ? 'sx.wfirunyan.com' : base;
let base = 'https://app.sysmade.com'; // dev
// let base = 'http://dani.ishangtui.com'; // pro
export default class Config {
  static baseUrl = base;
  // 蛋糕项目
  static login = base + '/consumer/api/rec/in';// 登陆
  static focus = base + '/base/api/wx/info';// 是否关注公众号
  static first = base + '/order/api/comment/home?method=comment';// 商品详情评论
  static allM = base + '/order/api/comment/admin?method=all';// 商品详情全部评论
  static getGood = base + '/product/api/query/detail';// 获取商品详情
  static allList = base + '/page/api/front/index';// 获取首页框架
  static getListGoods = base + '/product/api/query/queue';// 获取分区商品
  static getAllGoods = base + '/product/api/query/all';// 获取全部商品
  static cart = base + '/order/api/cart/';// 购物车操作
  static create = base + '/order/api/order/create';// 创建订单
  static create6 = base + '/order/api/bag/create';// 创建订单222222qwk
  static pay = base + '/pay/api/create/way';// 获取支付方式
  static payCreate = base + '/pay/api/create/token';// 创建支付
  static payBase = base + '/pay/api/order/confirm';// 获取支付凭证
  static getData = base + '/consumer/api/query/base';// 支付成功后更新的数据
  static products = base + '/product/api/region/products';// 根据首页区域id获取区域商品
  static groupAll = base + '/product/api/group/all';// 所有分类
  static product = base + '/product/api/group/product';// 分类下的商品
  static price = base + '/order/api/cart/money';// 分类下的商品
  static area = base + '/order/api/order/area';// 地址数据
  // /** 登录接口 */
  /** 达尼蛋糕个人中心  user接口* */
    // static urlUserSkeleton = base + '/page/user/all';
    // 个人中心页架构
  static urlUserSkeleton = base + '/page/api/front/user';
  // 用户金额信息
  static urlUserBalance = base + '/consumer/api/query/money';
  // 用户基本信息
  static urlUserBase = base + '/consumer/api/query/base';
  // 我的二维码
  static urlUserQrcode = base + '/consumer/api/rec/share';
  // 当日、本月、及全部收益
  static urlUseIncome = base + '/consumer/api/query/rebate';
  // 收货地址
  static urlAddress = base + '/consumer/api/address/';
  // 更改用户头像
  static urlUserAvatar = base + '/base/api/upload/img';
  // 修改用户个人信息
  static urlUserProfile = base + '/consumer/api/self/edit';
  // 提现接口
  static urlWithdraw = base + '/pay/api/cash/wx';
  // 提现记录
  static urlWithdrawHistroy = base + '/pay/api/cash/log';
  // 上级成员
  static urlGetTeamUp = base + '/consumer/api/query/up';
  // 下级成员
  static urlGetTeamDown = base + '/consumer/api/query/down';
  // 查询下级成员
  static urlQueryTeamDown = base + '/consumer/api/query/member';
  // 返利提醒到账：
  static urlRebate = base + '/consumer/api/query/profit';
  // 返利订单/
  // static urlQueryUserOrder = base + '/consumer/api/query/profit';
  // 订单详情
  static urlRebateOrderDetail = base + '/order/api/query/member?detail';
  // 查询成员订单列表
  static urlGetMemberOrderList = base + '/order/api/query/member?queue';
  /** 达尼蛋糕个人中心  user接口 end * */

  static urlUserRank = base + '/page/user/rank';

  static urlQueryAfterOrder = base + '/order/after/query ';

  // static urlWithdraw = base + '/order/api/query/queue';
  static urlWithdrawSteps = base + '/cash/wx/verify';

  static urlWithdrawGetOid = base + '/cash/init/check';
  static urlWithdrawDelOrd = base + '/order/user/delete';
  /** user接口* */
  /** 秦伟康的接口路径，大哥别给我删了你已经给我删了一回了！！！ */
  static btnState = base + '/page/extension/all';
  static searchIntergalAllUrl = base + '/page/extension/sumrebate';// 积分汇总
  static memList = base + '/page/extension/memberlist'; // 成员列表统计
  static reFund = base + '/order/after/integral'; // 积分退款
  static cardList = base + '/page/extension/package'; // 卡包
  static newDetail = base + '/order/query/detail'; // 新订单详情
  static rebateDetail = base + '/admin/list/order'; // 返利订单详情

  static shareFirst = base + '/action/rec/detail'; // 获取分享二维码
  static shareSec = base + '/action/rec/info'; // 获取分享二维码活动主题内容
  static goodPerUrl = base + '/good/detail/per'; // 获取单个商品详情接口
  static orderExpress = base + '/order/express/detail'; // 订单物流接口
  static CustomerService = base + '/mall/setting/customer'; // 客服接口
  static newPersonOrder = base + '/order/api/query/queue'; // 新我的订单接口
  static newPersonOrderDetail = base + '/order/api/query/detail'; // 新我的订单详情接口
  static newPersonOrderCancel = base + '/order/api/order/cancel'; // 新我的订单取消订单接口
  static newPersonOrderCollect = base + '/order/api/order/receive'; // 新我的订单确认收货接口
  static newPersonOrderPay = base + '/order/api/order/pay'; // 新我的订单详情页去付款查询付款参数
  static newPersonOrderComment = base + '/order/api/comment/home?method=query'; // 新我的订单详情页评论获取订单数据
  static newPersonOrderCommentUp = base + '/order/api/comment/home?method=create'; // 新我的订单详情页评论提交评论数据
  static newPersonOrderCommentUpImg = base + '/order/api/comment/home?method=create'; // 新我的订单详情页评论提交评论数据
  static newUploadImg = base + '/base/api/upload/img'; // 图片上传方法地址
  /** 授权开通vip */
  static nameList = base + '/agent/free/has'; // 获取查询开通名单列表
  static openVipList = base + '/agent/free/query'; // 查询开通vip
  static openAgent = base + '/agent/free/open'; // 查询开通vip
  static openVipNum = base + '/agent/free/get'; // 获取查询开通vip
  /** 秦伟康写的兑换券 */
  static selectConvert = base + '/product/api/ticket/get'; // 兑换券表
  static convertOne = base + '/order/api/ticket/create'; // 兑换券兑换1
  static convertSec = base + '/order/api/ticket/pay'; // 兑换券兑换2
  /** 新的 */
  static vipQuery1 = base + '/consumer/api/query/free'; // 免费vip查1
  static vipQueryItem = base + '/consumer/api/free/query'; // 查询是否可开通  customer/api/free/query  uid
  static vipQueryOpen = base + '/consumer/api/free/open'; // 开通接口   uid
};
